// const devPresets = ['@vue/babel-preset-app']
// const buildPresets = [
//   [
//     '@babel/preset-env',
//     // Config for @babel/preset-env
//     {
//       // Example: Always transpile optional chaining/nullish coalescing
//       // include: [
//       //   /(optional-chaining|nullish-coalescing)/
//       // ],
//     }
//   ],
//   '@babel/preset-typescript'
// ]
// module.exports = {
//   presets: (process.env.NODE_ENV === 'development' ? devPresets : buildPresets)
// }

const devPresets = ['@vue/babel-preset-app']
const buildPresets = [
    [
        '@babel/preset-env',
        // Config for @babel/preset-env
        {
            // Example: Always transpile optional chaining/nullish coalescing
            // include: [
            //   /(optional-chaining|nullish-coalescing)/
            // ],
        }
    ],
    '@babel/preset-typescript'
    //   '@vue/cli-plugin-babel/preset'
]
module.exports = {
    presets: (process.env.NODE_ENV === 'development' ? devPresets : buildPresets),
    plugins: [
        ['import', {
            libraryName: 'ant-design-vue',
            libraryDirectory: 'es',
            style: true
        }, 'antd'],
        [
            'import',
            {
                libraryName: 'vxe-table',
                libraryDirectory: 'lib',
                style: true
            }, 'vxe-table'
        ]
    ]
}